<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        window.onload=function()
        {
            //『...』扩展运算符能将『数组』转换为逗号分隔的『参数序列』
            //声明一个数组
            const num=["一号","二号","三号","四号"];
            //声明一个函数
            function number()
            {
                console.log(arguments);
            }
            number(num);
            number(...num);//等效于number("一号","二号","三号","四号");
        };
    </script>
</head>
<body>
    
</body>
</html>